package com.aaa.day1031demo.demo1;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年10月31日9:31
 */
public class Test {
    public static void main(String[] args) {
        MyThread myThread = new MyThread("aaa");
        myThread.start();
//        myThread.setName("线程1");

        MyThread myThread1 = new MyThread("bbb");
        myThread1.start();
//        myThread1.setName("线程2");
        for (int i = 0; i < 20; i++) {
            System.out.println(Thread.currentThread().getName()+"线程执行"+i);

//            System.out.println("main = " + i);
        }
    }
}
